/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.ipfw.cs590.cheat.struts.actionforms;

import edu.ipfw.cs590.cheat.RegisteredPerson;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;

/**
 * Bean for dealing with bending user management.
 * @author safar
 */
public class PendingUserManagementForm extends org.apache.struts.action.ActionForm {

    /**
     * Pending user list
     */
    private List<RegisteredPerson> pendingUserList;
    /**
     * Unique ID.
     */
    private String id;

    /**
     * Get the pending user list.
     * 
     * @return List<RegisteredUser> user list.
     */
    public List<RegisteredPerson> getPendingUserList() {
        return pendingUserList;
    }

    /**
     * Get the pending user list.
     * 
     * @param pendingUserList new pending user list.
     */
    public void setPendingUserList(List<RegisteredPerson> pendingUserList) {
        this.pendingUserList = pendingUserList;
    }

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     *
     */
    public PendingUserManagementForm() {
        super();
        pendingUserList = new ArrayList<RegisteredPerson>();
    }

    /**
     * This is the action called from the Struts framework.
     * @param mapping The ActionMapping used to select this instance.
     * @param request The HTTP Request we are processing.
     * @return
     */
    @Override
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
        ActionErrors errors = new ActionErrors();
        return errors;
    }
}
